package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.Shop;
import com.weipai.springboot.model.ShopCategory;
import com.weipai.springboot.model.api.Response;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/08/27 14:22
 */
public interface ShopDao {
    Shop getShopById(String shopId);

    int updateByPrimaryKey(Shop shop);

    List<Shop> selectAllByShopDel(int del, String search, String sort, String way, Integer applicantStatus);

    int batchDeleteById(String[] id);

    //绑定手机号
    int updateMobile(String shopId, String mobile);

    //修改店铺邮箱
    int updateEmail(String shopId, String email);

    //查询店铺信息：关注人数、店铺名称、logo
    Map<String,Object> getShopHeaderInfoByShopId(String shopId);

    //通过用户id查询店铺
    Shop getShopByCustomerId(String customerId);
    
    List<Map<String,Object>> getShopStatement(int start, Integer end);

    int getShopStatementAmount();

    Map<String, Object> getShopByIdAndMap(String shopId);

    int updateByPrimaryKeySelective(Shop shop);

    //更改客户的未结算值和已结算值
    int changeWithdrawal(String shopId, String noWithdrawal, String haveWithdrawal);

    //更新商品的未结算金额
    int updateNoWithdrawal(String shopId, int allProfit);
}
